using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SubmitIT.BLL;

namespace SubmitIT
{
    public partial class UISIComiteOrganizacao : SubmitIT.SIPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.CarregaGridView();
            }
        }

        #region Carrega GridView Comites de Organizacao

        /// <summary>
        /// Carrega o GridView de Grupos de Trabalho
        /// </summary>
        protected void CarregaGridView()
        {
            this.gdvComiteOrganizacao.DataSource = BLLComiteOrganizacao.Search(true);
            this.gdvComiteOrganizacao.DataBind();
        }

        #endregion Carrega GridView Comite de Organizacao

        protected void gdvComiteOrganizacao_RowDataBound(object sender, Obout.Grid.GridRowEventArgs e)
        {
            e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#DBD9D0'");

            if (e.Row.RowIndex % 2 == 0)
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#F6F5F0'");
            else
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#EFEDE2'");
        }

    }
}
